package it.eg.managedcor.example;

import java.util.List;

import org.apache.log4j.Logger;

import it.eg.managedcor.exceptions.RollbackException;
import it.eg.managedcor.impl.AbstractRollbackableTaskExecutor;

@SuppressWarnings("serial")
public class TestProcessRollbackableExecutor extends AbstractRollbackableTaskExecutor<TestProcessSession, TestProcessTask> {

	private static final Logger log = Logger.getLogger(TestProcessRollbackableExecutor.class);
	
	
	public TestProcessRollbackableExecutor(List<TestProcessTask> tasksToBeExecuted,
			List<TestProcessTask> executedTasks, TestProcessSession sessionData, boolean performFullRollback, RollbackOrder order) {
		super(tasksToBeExecuted, executedTasks, sessionData, performFullRollback, order);
	}
	

	@Override
	public void executeTasks() {
		
		log.debug("executeTestProcessTasks() - BEGIN");
		
		try {
			super.executeTasks();
		} catch (RollbackException e) {
			log.debug(e.getMessage(), e);
		}
		
		log.debug("executeTestProcessTasks() - END");
		
	}
	
}
